Skip to content

fix: auth status errors for unknown/unconfigured host (#107)#120

Merged
q-soriarty merged 1 commit intodevelopfrom
fix/107-auth-status-host
Apr 2, 2026
Merged

fix: auth status errors for unknown/unconfigured host (#107)#120
q-soriarty merged 1 commit intodevelopfrom
fix/107-auth-status-host

Conversation

@q-soriarty
Copy link
Copy Markdown
Contributor

Summary

Closes #107

When --host is specified, auth status now filters to that host and errors if not configured.

$ copia-cli auth status --host unknown.example.com
Error: not logged in to unknown.example.com

Also filters output to only the requested host when multiple hosts are configured.

Test plan

  • TestStatusRun_UnknownHost — errors for unconfigured host
  • TestStatusRun_SpecificHost — shows only requested host
  • All existing tests pass

When --host is specified, filter to that host only and return
an error if not configured. Previously showed default host status.
@q-soriarty q-soriarty marked this pull request as ready for review April 2, 2026 10:25
@q-soriarty q-soriarty merged commit 0c14d13 into develop Apr 2, 2026
4 checks passed
@q-soriarty q-soriarty deleted the fix/107-auth-status-host branch April 2, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant